<?php 
//@access check
	if (!defined('FREEY_LIB'))    
		die('Hacking attempt');

/**
 * class_note
 *
 * @auther		FreeYadmin <FreeYadmin@gmail.com>
 * @update		none
 * @package		FreeY 
 */	
abstract class FreeY_Sql_Expr_Abstract extends FreeY_Object
{
	/**
	 * property_note
	 * 
	 * @type	string
	 */
	protected $_exprs = array();

	/**
	 * property_note
	 * 
	 * @type	string
	 */
	protected $_expr = ',';

	/**
	 * property_note
	 * 
	 * @type	string
	 */
	protected $_id = 0;

	/**
	* toString
	* 
	* @param	$var		array		note
	* @return	$ret		array		note
	*/
	public function toString()
	{
		if ($this->_exprs) {
			return join($this->_expr, $this->_exprs);
		}
	}

	/**
	* add
	* 
	* @param	$var		array		note
	* @return	$ret		array		note
	*/
	public function add($expr)
	{
		$this->_id++;
		if (is_array($expr)) {
			foreach ($expr as $expr_v) {
				$this->add($expr_v);
			}
		} else {
			$this->_exprs[$this->_id] = $expr;
		}

		return $this;
	}

}//class end**********
//file end--------------------------------------------------------->